import React from 'react';
import ImageLazy from '../components/commons/ImageLazy';
import NavLink from '../components/commons/NavLink';
import Menu from '../components/user_them/order/menu.jsx';
import { connect } from 'react-redux';
import {get_order_classify} from '../actions';
import {getHosImg,getDocImg,getServImg,BindMixin} from '../actions/ActionTypes';

let mydefault = React.createClass({
  mixins:[BindMixin],
  componentDidMount:function(){
    this.no_login(!this.props.user_logined)
    // $('.orderMenu .wrapper a').find(this.state.activeIndex).addClass('active');
    // $('.orderMenu .wrapper a').tap(function(){
    //   $('.orderMenu .wrapper a').removeClass('active');
    //   $(this).addClass('active')
    //   //数据操作
    // })
  },
  render:function(){
    return(
      <div className="userOrderView">
        <Menu />
        {this.props.children}
      </div>
    )
  }
})

let mapStateToProps = (state) => {
  return{
    user_logined:state.user.user_logined
  }
}

export default connect(mapStateToProps)(mydefault);
